package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreStockCheckBillDetailEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 库存期初导入单明细 保存对象
 *
 * @author fs 2021-03-09
 */
@Data
@ApiModel("库存期初导入单明细-保存对象")
public class StoreStockCheckBillDetailSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "盘点单id")
    private Integer billId;

    @ApiModelProperty(value = "商品sku")
    private String sku;

    @ApiModelProperty(value = "仓库编码")
    private String storeCode;

    @ApiModelProperty(value = "盘点前系统库存数量")
    private Integer sysSkuNum;

    @ApiModelProperty(value = "实际库存盘点数量")
    private Integer actualSkuNum;

    @ApiModelProperty(value = "差异说明")
    private String differentRemark;

    public StoreStockCheckBillDetailEntity convertEntity() {
        StoreStockCheckBillDetailEntity target = new StoreStockCheckBillDetailEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
